<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配置文件管理</title>
<style type="text/css">
body{
  font-size:12px;
}
</style>

<load href="__PUBLIC__/Js/jquery.js"/>
<script>
$(function(){
   $.ajax({
	   type:"GET",
	   cache:false,
	   async:true,
	   dataType:"text",
	   data:"path="+'{$encode_path}',
	   url:"__URL__/lookcode",
	   success:function(msg){
		 if(msg=="文件不存在"){
		   alert(msg);
		   return false;
		 }else{
		   $("#code_content").val(msg);
		 }
	   },
	   error:function(){
	     alert('出现错误');
	   }
  }); 
  $("#btn1").click(function(){
	  $("#form1").submit();
	  $(this).attr("disabled",true);
  }); 
});
 
</script>
</head>
<body>
<!-- layout::Admin:Syscolumn:inc_top::0 -->
修改config.php之前，请确保config.php具有写权限
<table width="1000" border="0" cellspacing="0" cellpadding="0">
<form id="form1" name="form1" method="post" action="__URL__/savecode/type/config">
  <tr>
    <td align="center" valign="top">
      文件名:<span id="filename">{$config_path}</span>
      <input name="btn1" type="button" id="btn1" value="保存" />
	  <input name="hidden_filename" id="hidden_filename" type="hidden" value="{$config_path}"/>
    </span></td>
  </tr>
  <tr>
    <td width="600px;" align="left" valign="top"><textarea name="code_content" cols="70" rows="20" id="code_content"></textarea></td>
  </tr>
  </form>
</table>


</body>
</html>
